/**
 * Created by jimmy on 2016/2/22.
 */
var search_text;
var urlMsg = getURLInformation()
search_text = decodeURI(urlMsg.search_text);

$("#searchText").text(search_text);

function requestBusinessList(notScrollTotop) {
    if (notScrollTotop) {
        //改变条件时需要把page重新设置为1
        click_page = 1;
    }

    var requestParam = {
        page: click_page,
        search_text: search_text
    };

    $.ajax({
        type: "get",
        async: true, //同步请求
        url: '/index/jsonSearch',
        data: requestParam,
        timeout: 3000,
        success: function(dates) {
            $(".page").empty();
            $(".index-business-list").remove();
            $(".index-business-list-hide").remove();
            $(".empty-content").remove();
            processResp(dates, notScrollTotop);
        },
        error: function() {
            $.nmDebug.log("失败，请稍后再试！");
        }
    });
}
